import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs';

type TFeature = {
  id: number;
  feature: string;
};

@Injectable()
export class DataService {
  // 当前选中的feature
  currentFeature = new BehaviorSubject<TFeature>({
    id: -1,
    feature: '',
  });
  // 是否展示edit弹框
  showEdit = new BehaviorSubject<number>(-1);

  featureRefresh = new BehaviorSubject(true);
}
